package com.pactera.smart.controller;

import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/*
 * @Description: TODO 测试
 * @Author:  hejiayao
 * @CreateDate:  2021/5/27 15:40
 * @UpdateUser:  hejiayao
 * @UpdateDate:  2021/5/27 15:40
 * @className: TestController
 * @Package : com.pactera.smart.controller
 * @Version: 1.0
 */
@RestController
@RequestMapping("/test1")
public class TestController {

    public static void main(String[] args) {
        Snowflake snowflake = IdUtil.createSnowflake(20, 30);
        long id = snowflake.nextId();
        System.out.println(id);
    }

}
